package com.example.hotelrear.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.hotelrear.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author FengXiao
 * @since 2023-08-28
 */

public interface OrderService extends IService<Order> {
    public int paid(int id);
    public int notpaid(int id);
    public int TobeComment(int id);
    //全部订单
    public List<Order> findAllOrderById(int id);
    //待付款
    public List<Order> findNoPaidOrderById(int id);
    //已付款
    public List<Order> findPaidOrderById(int id);
    //待评价
    public List<Order> findNoCommentOrderById(int id);
    //已失效
    public List<Order> findInactiveOrderById(int id);
    //已取消
    public List<Order> findCancleOrderById(int id);
}
